package com.xjy.pojo;

import java.util.Date;
import java.util.Objects;

public class user {
    private Integer uid;
    private String userName;
    private String realName;
    private String pwd;
    private String email;
    private Date birthday;
    private Integer gender;
    private String photo;
    private Integer status;

    public Integer getUid() {return this.uid;}
    public void setUid(Integer uid) {this.uid = uid;}
    public String getUserName(){ return this.userName; }
    public void setUserName(String userName) { this.userName = userName;}
    public String getRealName() {return this.realName;}
    public void setRealName(String realName) {this.realName = realName;}
    public String getPwd() {return pwd;}
    public void setPwd(String pwd) {this.pwd = pwd;}
    public String getEmail() {return email;}
    public void setEmail(String email) {this.email = email;}
    public Date getBirthday() {return birthday;}
    public void setBirthday(Date birthday) {this.birthday = birthday;}
    public Integer getGender() {return gender;}
    public void setGender(Integer gender) {this.gender = gender;}
    public String getPhoto() {return photo;}
    public void setPhoto(String photo) {this.photo = photo;}
    public Integer getStatus() {return status;}
    public void setStatus(Integer status) {this.status = status;}

    private Integer age;//获取年纪
    public Integer getAge() {
        Date date=new Date();
        Integer age =date.getYear()- birthday.getYear();
        return age;
    }


}
